package com.mingqijia.gassafety.db.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author guoliang.lao
 * @version 1.0.0
 * @ClassName LatestLogListRequest.java
 * @Description 实时状态列表返回
 * @createTime 2022年02月21日
 */
@Data
@ApiModel("平台报警设备")
public class PlatformAlarmEquipmentResp {

    @ApiModelProperty(value = "spId")
    private String spId;

    @ApiModelProperty(value = "家用报警数量")
    private Integer homeGasDetectorCount;

    @ApiModelProperty(value = "其他报警数量")
    private Integer otherEquipmentCount;

    public int sumValues() {
        return homeGasDetectorCount + otherEquipmentCount;
    }
}
